<template>
  <div id="ZJSJJCYSB">
    <p style="text-align: center; margin: 10px 0">竹脚手架检查验收表</p>
    <table border="1" width="100%">
      <tr>
        <td>房屋验收层数</td>
        <td colspan="5">{{number}}</td>
      </tr>
      <tr>
        <td colspan="3">验收内容</td>
        <td rowspan="2">技术要求</td>
        <td rowspan="2">允许偏差Δ（mm）</td>
        <td rowspan="2">检查结果</td>
      </tr>
      <tr>
        <td>项次</td>
        <td colspan="2">项目</td>
      </tr>
      <tr>
        <td rowspan="3">1</td>
        <td rowspan="3">基底</td>
        <td>表面</td>
        <td>坚实平整</td>
        <td rowspan="3">—</td>
        <td>
          <van-radio-group v-model="radioAll.JDBM">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>排水</td>
        <td>不积水</td>
        <td>
          <van-radio-group value="1" v-model="radioAll.JDPS">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>垫板</td>
        <td>不松动</td>
        <td>
          <van-radio-group v-model="radioAll.JDDB">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td rowspan="3">2</td>
        <td rowspan="3">各杆件小头有效直径</td>
        <td>纵向、横向水平杆</td>
        <td>≥90mm</td>
        <td rowspan="3">0</td>
        <td>
          <van-radio-group v-model="radioAll.SPGYXZJ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>搁栅、栏杆</td>
        <td>≥60mm</td>
        <td>
          <van-radio-group v-model="radioAll.LGYXZJ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>其他杆件</td>
        <td>≥75mm</td>
        <td>
          <van-radio-group v-model="radioAll.QTGJYXZJ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td rowspan="3">3</td>
        <td rowspan="3">杆件弯曲</td>
        <td>端部弯曲L≤1.5m</td>
        <td>≤20mm</td>
        <td rowspan="3">0</td>
        <td>
          <van-radio-group v-model="radioAll.GJDBWQ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>顶撑</td>
        <td>≤20mm</td>
        <td>
          <van-radio-group v-model="radioAll.GJDCWQ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>其他杆件</td>
        <td>≤50mm</td>
        <td>
          <van-radio-group v-model="radioAll.QTGJWQ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td rowspan="2">4</td>
        <td rowspan="2">立杆垂直度</td>
        <td>搭设中检查偏差的高度</td>
        <td>不得朝外倾斜，当高度为：H=10m H=15m</td>
        <td>25 50</td>
        <td>
          <van-radio-group v-model="radioAll.LGCZBPGD">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>最后验收垂直度</td>
        <td>不得朝外倾斜</td>
        <td>100</td>
        <td>
          <van-radio-group v-model="radioAll.LGCZYSZCD">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td>5</td>
        <td>顶撑</td>
        <td>直径</td>
        <td>与水平杆直径相匹配</td>
        <td>与水平杆直径相差不大于顶撑的1/3</td>
        <td>
          <van-radio-group v-model="radioAll.DCZJ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td rowspan="3">6</td>
        <td rowspan="3">间距</td>
        <td>步距</td>
        <td>1.5m</td>
        <td>±20</td>
        <td>
          <van-radio-group v-model="radioAll.BJ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>纵距</td>
        <td>1.5m</td>
        <td>±50</td>
        <td>
          <van-radio-group v-model="radioAll.ZJ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>横距</td>
        <td>≤1.2m</td>
        <td>±20</td>
        <td>
          <van-radio-group v-model="radioAll.HJ">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td rowspan="3">7</td>
        <td rowspan="3">纵向水平杆</td>
        <td>一根杆的两端</td>
        <td>—</td>
        <td>±20</td>
        <td>
          <van-radio-group v-model="radioAll.ZXSPG1">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>同跨内两根纵向水平杆</td>
        <td>—</td>
        <td>±10</td>
        <td>
          <van-radio-group v-model="radioAll.ZXSPG2">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>同一排纵向水平杆</td>
        <td>—</td>
        <td>不大于架体纵向长度的1/300或200mm</td>
        <td>
          <van-radio-group v-model="radioAll.ZXSPG3">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td rowspan="2">8</td>
        <td rowspan="2">横向水平杆外伸长度偏差</td>
        <td>出外侧立杆</td>
        <td>≥200mm</td>
        <td>0</td>
        <td>
          <van-radio-group v-model="radioAll.HXSPGPC1">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>伸向墙面</td>
        <td>≤450mm</td>
        <td>0</td>
        <td>
          <van-radio-group v-model="radioAll.HXSPGPC2">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td rowspan="2">9</td>
        <td rowspan="2">杆件搭接长度</td>
        <td>纵向水平杆</td>
        <td>≥1.5m</td>
        <td>0</td>
        <td>
          <van-radio-group v-model="radioAll.GJDJCD1">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>其他杆件</td>
        <td>≥1.2m</td>
        <td>0</td>
        <td>
          <van-radio-group v-model="radioAll.GJDJCD2">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr>
        <td rowspan="2">10</td>
        <td rowspan="2">连墙件</td>
        <td>设置间距</td>
        <td>二步三跨或三步三跨</td>
        <td>—</td>
        <td>
          <van-radio-group v-model="radioAll.LQJ1">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>
      <tr>
        <td>离主节点距离</td>
        <td>≤300mm</td>
        <td>0</td>
        <td>
          <van-radio-group v-model="radioAll.LQJ2">
            <van-radio name="1">合格</van-radio>
            <van-radio name="2">不合格</van-radio>
          </van-radio-group>
        </td>
      </tr>

      <tr v-for="(item1, index1) in ImgData" :key="index1">
        <td style="text-align: left; padding: 10px" colspan="8">
          <span style="margin-right: 40%">{{ item1.name }}</span>
          <p>
            <van-uploader @click-upload="getList(item1)" :after-read="afterRead" :before-delete="delectFile" v-model="item1.fileList" multiple />
          </p>
        </td>
      </tr>

      <tr>
        <td colspan="3">施工单位（工匠）检查结果</td>
        <td colspan="3">
          <div style="text-align: right">
            <p>
              <!-- 检查人员 -->
              <!-- <van-field name="检查人员" placeholder="请填写检查人员" label="检查人员" v-model="radioAll.YSRY" /> -->
              <qianzi :placeholder="'请填写检查人员'" :file="fileshouxie" :GROUPGUID="`竹脚手架检查验收表_${this.number}_施工单位检查人员`" :ROW_GUID="rowData.ROW_GUID"></qianzi>
            </p>
            <p>
              <!-- <van-field v-model="radioAll.YSSJ" /> -->
              <van-field readonly clickable name="datetimePicker" :value="radioAll.YSSJ" label="检查时间：" placeholder="请选择检查时间" @click="showPickerq = true" />
              <van-popup v-model="showPickerq" position="bottom">
                <van-datetime-picker v-model="currentDate" type="date" title="选择年月日" @cancel="showPickerq = false" @confirm="onConfirmRQ" />
              </van-popup>
            </p>
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="3">业主（监理）验收结论</td>
        <td colspan="3">
          <div style="text-align: right">
            <p>
              <!-- 检查人员 -->
              <!-- <van-field name="检查人员" placeholder="请填写检查人员" label="检查人员" v-model="radioAll.YZYSRY" /> -->
              <qianzi :placeholder="'请填写检查人员'" :file="fileshouxie1" :GROUPGUID="`竹脚手架检查验收表_${this.number}_业主检查人员`" :ROW_GUID="rowData.ROW_GUID"></qianzi>
            </p>
            <p>
              <!-- <van-field v-model="radioAll.YZYSSJ" /> -->
              <van-field readonly clickable name="datetimePicker" :value="radioAll.YZYSSJ" label="检查时间：" placeholder="请选择检查时间" @click="showPicker = true" />
              <van-popup v-model="showPicker" position="bottom">
                <van-datetime-picker v-model="currentDate1" type="date" title="选择年月日" @cancel="showPicker = false" @confirm="onConfirmR" />
              </van-popup>
            </p>
          </div>
        </td>
      </tr>
    </table>
    <div class="footer" v-if="!$route.query.type">
      <!-- <van-button
        style="margin-right: 10px"
        size="small"
        type="info"
        @click="handleClick(SaveData)"
        >提交</van-button
      > -->
      <van-button v-if="(!this.$store.state.isGJ || rowData.OPTYPE == '60')&&isTIjiao" size="small" type="info" @click="save">保存</van-button>
    </div>
  </div>
</template>

<script>
import {
  InsertDataView,
  dataServerOpenDataView,
  updateDataView,
  FileServerUpload,
  GetFileData,
  DelectFile,
  FileServerProxy,
  dataTransFilePreview,
  dataTransFile
} from "../../../utils/api";
import qianzi from '../../../common/qianzi.vue'
export default {
  name: "ZJSJJCYSB",
  data () {
    return {
      number: '',
      isTIjiao:false,
      radioAll: {
        ROW_GUID: "",
        TO_ROW_GUID: "",
        JDBM: "1",
        JDPS: "1",
        JDDB: "1",
        SPGYXZJ: "1",
        LGYXZJ: "1",
        QTGJYXZJ: "1",
        GJDBWQ: "1",
        GJDCWQ: "1",
        QTGJWQ: "1",
        LGCZBPGD: "1",
        LGCZYSZCD: "1",
        DCZJ: "1",
        BJ: "1",
        ZJ: "1",
        HJ: "1",
        ZXSPG1: "1",
        ZXSPG2: "1",
        ZXSPG3: "1",
        HXSPGPC1: "1",
        HXSPGPC2: "1",
        GJDJCD1: "1",
        GJDJCD2: "1",
        LQJ1: "1",
        LQJ2: "1",
        YSJL: "",
        YSRY: "",
        YSSJ: "",
        FWMC: "",
        FWDZ: "",
        HZXM: "",
        SGFZR: "",
      },
      rowGuid: "",
      rowData:{},
      isDataList: false,
      fileshouxie: [
        {
          title: '请填写检查人员',
          FileName: '无',
          groupGuid: `竹脚手架检查验收表_${this.number}_施工单位检查人员`,
          fileList: [],
        },
      ],
      fileshouxie1: [
        {
          title: '请填写检查人员',
          FileName: '无',
          groupGuid: `竹脚手架检查验收表_${this.number}_业主检查人员`,
          fileList: [],
        },
      ],
      ImgData: [
        {
          name: "钢筋合格证照片",
          groupGuid: "7958e963-3e02-41e3-9516-5db38000f555",
          fileList: [],
        },
        {
          name: "水泥合格证照片",
          groupGuid: "668b6daa-d3ca-4618-b2c9-fe0791470b59",
          fileList: [],
        },
        {
          name: "石子沙合格证照片",
          groupGuid: "e3e6ee5a-c743-4035-ad64-5b966c67810e",
          fileList: [],
        },
        {
          name: "现场照片合格证照片",
          groupGuid: "078127de-f2c7-4261-8f98-2229d894eb48",
          fileList: [],
        },
      ],
      currentDate: new Date(),
      currentDate1: new Date(),
      showPickerq: false,
      showPicker: false,
    };
  },
  methods: {
    delectFile: async function (file) {
      // if (file.ROW_GUID) {
      //   const res = await DelectFile({
      //     fileGuid: file.ROW_GUID,
      //     token: window.localStorage.getItem("token"),
      //   });
      // }
      // if (file.ROW_GUID) {
      //   let params = {
      //     "accessCode": "ce9b691634de4ebca68dc5bb638d07f4",
      //     "cityCode": "441300000000",
      //     "params": {
      //       "fileGuid": file.ROW_GUID,
      //       token: window.localStorage.getItem('token')
      //     }
      //   }
      //   const res = await FileServerProxy(params)
      // }
      let fileguid = ""
      if (file.ROW_GUID) {
        fileguid = file.ROW_GUID
      }else{
        fileguid = this.fileGuid
      }
      if(fileguid){
        let params = {
          "accessCode": "ce9b691634de4ebca68dc5bb638d07f4",
          "cityCode": "441300000000",
          "params": {
            "fileGuid": fileguid,
            token: window.localStorage.getItem('token')
          }
        }
        const res = await FileServerProxy(params)
        let data = JSON.parse(res.data.data).Success
        if (data) {
          this.$toast.success('删除成功!');
        }
      }
    },
    afterRead (file) {
      this.getFileServerUpload(file.file);
    },
    getFile: async function () {
      let groupGuid = [];
      this.ImgData.forEach((item) => {
        groupGuid.push(item.groupGuid);
      });
      // const res1 = await GetFileData({
      //   groupGuid: groupGuid.join(","),
      //   toRowGuid: this.rowGuid,
      // });
      // if (res1.data.FilesInfo.length > 0) {
      //   res1.data.FilesInfo.forEach((element) => {
      //     this.ImgData.forEach((items) => {
      //       // item.children.forEach(items => {
      //       if (element.GROUPGUID == items.groupGuid) {
      //         element["isImage"] = true;
      //         element["url"] =
      //           window.g.BaseURL +
      //           "FileServer/api/Preview?token=" +
      //           window.localStorage.getItem("token") +
      //           "&" +
      //           "fileGuid=" +
      //           encodeURIComponent(element.ROW_GUID);
      //         items.fileList.push(element);
      //       }
      //       // })
      //     });
      //   });
      // }
      let params = {
        "accessCode": "1fdcbce42c6d4748a020feba618d54b8",
        "cityCode": window.localStorage.getItem("citycode")
          ? window.localStorage.getItem("citycode")
          : "",
        "params": {
          "groupGuid":  groupGuid.join(","),
          "toRowGuid": this.rowGuid,
          token: window.localStorage.getItem('token')
        }
      }
      const res = await FileServerProxy(params)
      let data = JSON.parse(res.data.data).FilesInfo
      if (data.length > 0) {
        data.forEach((element) => {
          this.ImgData.forEach((items) => {
            if (element.GROUPGUID == items.groupGuid) {
              this.getFileUrl(element, items);
              // element["isImage"] = true;
              // element["url"] =
              //   window.g.BaseURL +
              //   "FileServer/api/Preview?token=" +
              //   window.localStorage.getItem("token") +
              //   "&" +
              //   "fileGuid=" +
              //   encodeURIComponent(element.ROW_GUID);
              // items.fileList.push(element);
            }
          });
        });
      }
    },
     //获取附件文件流
    getFileUrl: async function (element, item) {
      let formData = new FormData();
      formData.append("accessCode", "98bcf528966e48ce896a8b3fd02d45d5");
      formData.append(
        "cityCode",
        window.localStorage.getItem("citycode")
          ? window.localStorage.getItem("citycode")
          : "441300000000"
      );
      formData.append(
        "paramStr",
        JSON.stringify({
          fileGuid: element.ROW_GUID,
        })
      );
      let response = await dataTransFilePreview(formData);
      if (response) {
        var img = new Blob([new Int8Array(response.data, 0)], {
          type: response.headers["content-type"],
        }); //type类型可自定义
        element["isImage"] = true;
        element["url"] = window.URL.createObjectURL(img);
        item.fileList.push(element);
      }
    },
    getFileServerUpload: async function (file) {
      let data = {
        toRowGuid:this.rowGuid,
        groupGuid:this.groupGuids,
        token:window.localStorage.getItem("token")
      }
      let formData = new FormData();
      formData.append("file", file);
      // formData.append("toRowGuid", this.rowGuid);
      // formData.append("groupGuid", this.groupGuids);
      // formData.append("token", window.localStorage.getItem("token"));
      formData.append("accessCode", "7a3fc061c866434b8475d3775c9ddcea");
      formData.append("cityCode",  window.localStorage.getItem("citycode")
              ? window.localStorage.getItem("citycode")
              : "441300000000");
      // formData.append("token", window.localStorage.getItem("token"));
      formData.append("paramStr", JSON.stringify(data));
      // const res = await FileServerUpload(formData);
      const res = await dataTransFile(formData);
      let data1 = JSON.parse(res.data.data).FileList
      this.fileGuid = data1[0].FILEGUID
      if (data1[0].FILEGUID) {
        this.$toast.success('上传成功!');
      }
    },
    getList (item) {
      this.groupGuids = item.groupGuid;
    },
    onConfirmR (val) {
      let year = val.getFullYear();
      let month = val.getMonth() + 1;
      let day = val.getDate();
      let hour = val.getHours();
      let minute = val.getMinutes();
      if (month >= 1 && month <= 9) {
        month = `0${month}`;
      }
      if (day >= 1 && day <= 9) {
        day = `0${day}`;
      }
      if (hour >= 0 && hour <= 9) {
        hour = `0${hour}`;
      }
      if (minute >= 0 && minute <= 9) {
        minute = `0${minute}`;
      }
      this.radioAll.YZYSSJ = `${year}-${month}-${day}`;
      this.showPicker = false;
    },
    onConfirmRQ (val) {
      let year = val.getFullYear();
      let month = val.getMonth() + 1;
      let day = val.getDate();
      let hour = val.getHours();
      let minute = val.getMinutes();
      if (month >= 1 && month <= 9) {
        month = `0${month}`;
      }
      if (day >= 1 && day <= 9) {
        day = `0${day}`;
      }
      if (hour >= 0 && hour <= 9) {
        hour = `0${hour}`;
      }
      if (minute >= 0 && minute <= 9) {
        minute = `0${minute}`;
      }
      this.radioAll.YSSJ = `${year}-${month}-${day}`;
      this.showPickerq = false;
    },
    //获取数据
    getData: async function () {
      // let dataGuid = "bcd44982-9649-429c-b67a-bb34266e4c73";
      // let searchObject = encodeURIComponent(
      //   JSON.stringify([
      //     { field: "to_row_guid", value: this.rowData.ROW_GUID, operator: "=" },
      //   ])
      // );
      // let token = window.localStorage.getItem("token");
      // const res = await dataServerOpenDataView(dataGuid, searchObject, token);
      // if (res.data.Data && res.data.Data.length == 0) {
      //   //新增
      //   this.isDataList = false;
      // } else {
      //   //修该
      //   this.radioAll = res.data.Data[0];
      //   this.isDataList = true;
      // }

      let params = {
        "accessCode": "688bd3883572440a859dfd8ba9194e7b",
        "cityCode": "441300000000",
        "params": {
          "dataguid": "bcd44982-9649-429c-b67a-bb34266e4c73",
          "searchObject":JSON.stringify([
            { field: "to_row_guid", value: this.rowData.ROW_GUID, operator: "=" }
          ]),
          token: window.localStorage.getItem('token')
        }
      }
      const res = await FileServerProxy(params)
      let data = JSON.parse(res.data.data).Data
      if (data && data.length == 0) {
        //新增
        this.isDataList = false;

        // this.ROW_GUID = this.newGuid();
      } else {
        //修该
        // this.ROW_GUID = data[0].ROW_GUID;
        this.radioAll = data[0];
        this.isDataList = true;
      }
    },
    save: async function () {
      //
      let data = this.radioAll;
      data.ROW_GUID = this.rowData.ROW_GUID;
      data.to_row_guid = this.rowData.ROW_GUID;
      // let params = {
      //   dataGuid: "bcd44982-9649-429c-b67a-bb34266e4c73",
      //   strParams: JSON.stringify([data]),
      //   token: window.localStorage.getItem("token"),
      // };
      // if (!this.isDataList) {
      //   const res = await InsertDataView(params);
      //   if (res.data.Success) {
      //     this.isDataList = true;
      //     this.$toast.success('保存成功!');
      //     // this.$notify({ type: "success", message: "保存成功!" });
      //   }
      // } else {
      //   const res = await updateDataView(params);
      //   if (res.data.Success) {
      //     this.$toast.success('保存成功!');
      //     // this.$notify({ type: "success", message: "保存成功!" });
      //   }
      // }
      // let data = this.radioAll;
      // data.ROW_GUID = this.ROW_GUID;
      // data.TO_ROW_GUID = this.rowData.ROW_GUID;
      let params = {
        "accessCode": "",
        "cityCode": "441300000000",
        "params": {
          "dataGuid": "bcd44982-9649-429c-b67a-bb34266e4c73",
          "strParams": JSON.stringify([data]),
          "token": window.localStorage.getItem('token')
        }
      }
      if (!this.isDataList) {
        params.accessCode = "0fb3f6123d1b4fe6851c99532c463f6f"
        const res = await FileServerProxy(params);
        let data = JSON.parse(res.data.data).Success
        if (data) {
          this.$toast.success('成功！');
        }
      } else {
        params.accessCode = "77ad6c1591e54d4fbc45ecc90374a2a2"
        const res = await FileServerProxy(params);
        let data = JSON.parse(res.data.data).Success
        if (data) {
          this.$toast.success('修改成功!');
        }
      }
    },
    defaultField () {
      let dateTime
      let yy = new Date().getFullYear()
      let mm = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1)
      let dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate()
      dateTime = yy + '-' + mm + '-' + dd
      this.radioAll.YZYSSJ = dateTime
      this.radioAll.YSSJ = dateTime
    },
  },
  components:{
    qianzi
  },
  mounted () {
    this.defaultField()
    this.number = this.$route.query.number
    this.rowData = JSON.parse(this.$route.query.data);
    this.rowGuid = this.rowData.ROW_GUID;
    this.SaveData = JSON.parse(this.$route.query.data1);
    this.getData();
    this.getFile();
    // this.showEdition = this.$store.state.Edition;
    if(window.localStorage.getItem('isPerTab') == 2){
      this.isTIjiao = false
    } else{
      this.isTIjiao = true
    }
  },
};
</script>

<style lang="scss">
#ZJSJJCYSB {
  height: 100vh;
  overflow: auto;
  .van-radio__label {
    width: 48px;
  }
  /*padding:  10px;*/
  table,
  table tr th,
  table tr td {
    border: 1px solid #000000;
    text-align: center;
  }
  .footer {
    text-align: center;
    padding: 10px 0;
  }
}
</style>
